<template>
  <div>
    <h1>查看 Office 文件</h1>
    <iframe
      :src="'https://view.officeapps.live.com/op/embed.aspx?src=' + encodeURIComponent(fileUrl)"
      width="100%"
      height="600px"
      frameborder="0">
    </iframe>
  </div>
</template>

<script>
export default {
 name: "previewOffice",
  props: ["fileUrl"],
}
</script>

<style scoped></style>
